import { connect } from 'dva';
import { useEffect, useState } from 'react';
import { Form, Input, Button } from 'antd';

function SingalEmp({ employee, dispatch }) {
  useEffect(() => {
    // dispatch({
    //   type: 'employee/getAll',
    // });
    //console.log(employee.list, 111);
  }, []);
  const layout = {
    labelCol: {
      span: 8,
    },
    wrapperCol: {
      span: 8,
    },
  };
  const tailLayout = {
    wrapperCol: {
      offset: 8,
      span: 16,
    },
  };
  return (
    <div>
      {/* <Form
        {...layout}
        name="basic"
        style={{ paddingTop: '30px' }}
        initialValues={{
          remember: true,
        }}
      >
        <Form.Item label="FirstName" name="FirstName">
          <Input />
        </Form.Item>

        <Form.Item label="LastName" name="LastName">
          <Input />
        </Form.Item>
        <Form.Item label="Age" name="Age">
          <Input />
        </Form.Item>
        <Form.Item label="Address" name="Address">
          <Input />
        </Form.Item>
        <Form.Item {...tailLayout}>
          <Button type="primary" htmlType="submit">
            Submit
          </Button>
        </Form.Item>
      </Form> */}
    </div>
  );
}

export default connect(({ employee }) => ({ employee }))(SingalEmp);
